package com.sdonkey.score.dto.register;

/**
 * 注册表单页面封装
 *
 * @author ZhaoShihao
 * @version 1.0
 */
public class RegisterPageDetailedInfo {
    private Integer id;//用户id
    private String email;
    private String code;
    private String sex;
    private String age;
    private String realName;//真实姓名
    private String credentialsType;//证件类型
    private String credentialsNum;//证件号码
    private String education;//学历
    private String monthlyIncome;//月收入
    private String maritalStatus;//婚否
    private String children;//孩子
    private String area;//地区
    private String house;//是否有房
    private String car;//是否有车
    private String adCategory;//广告需求类别
    private String hobby;//兴趣爱好
    private String adKey;//关键字
    private RegisterPageDetailedInfo info;


    public RegisterPageDetailedInfo getInfo() {
        return info;
    }

    public void setInfo(RegisterPageDetailedInfo info) {
        this.info = info;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getCredentialsType() {
        return credentialsType;
    }

    public void setCredentialsType(String credentialsType) {
        this.credentialsType = credentialsType;
    }

    public String getCredentialsNum() {
        return credentialsNum;
    }

    public void setCredentialsNum(String credentialsNum) {
        this.credentialsNum = credentialsNum;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getMonthlyIncome() {
        return monthlyIncome;
    }

    public void setMonthlyIncome(String monthlyIncome) {
        this.monthlyIncome = monthlyIncome;
    }

    public String getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(String maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public String getChildren() {
        return children;
    }

    public void setChildren(String children) {
        this.children = children;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAdCategory() {
        return adCategory;
    }

    public void setAdCategory(String adCategory) {
        this.adCategory = adCategory;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getAdKey() {
        return adKey;
    }

    public void setAdKey(String adKey) {
        this.adKey = adKey;
    }
    /*public void setHobby(String[] hobby) {
        this.hobby = convertToString(hobby);
    }
    public void setAdCategory(String[] adCategory) {
        this.adCategory = convertToString(adCategory);
    }

    public void setAdKey(String[] adKey) {
        this.adKey = convertToString(adKey);
    }

    private String convertToString(String[] ig) {
        StringBuilder str = new StringBuilder();
        String s = null;
        if (ig != null && ig.length > 0) {
            int i = ig.length > 5 ? 5 : ig.length;
            for (int j = 0; j < i; j++) {
                str.append(ig[j]).append("|");
            }
            s = str.substring(0, str.length() - 1);
        }
        return s;
    }*/
}
